home *** CD-ROM | disk | FTP | other *** search
- /*
- File: InterruptDisableLib.h
-
- Contains: Routines for disabling interrupts on 68K and PPC.
-
- Written by: Quinn "The Eskimo!"
-
- Copyright: © 1998 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- You may incorporate this sample code into your applications without
- restriction, though the sample code has been provided "AS IS" and the
- responsibility for its operation is 100% yours. However, what you are
- not permitted to do is to redistribute the source as "DSC Sample Code"
- after having made changes. If you're going to re-distribute the source,
- we require that you make it clear in the source that the code was
- descended from Apple Sample Code, but that you've made changes.
- */
-
- /////////////////////////////////////////////////////////////////////
-
- #include <Types.h>
-
- /////////////////////////////////////////////////////////////////////
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- extern pascal UInt16 GetInterruptMask(void);
- // Returns the current interrupt mask, as a value
- // from 0 to 7.
-
- extern pascal UInt16 SetInterruptMask(UInt16 newMask);
- // Sets the current interrupt mask, as a value
- // from 0 to 7.
-
- #ifdef __cplusplus
- }
- #endif
-